package com.nut.spp.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.fasterxml.jackson.databind.JsonNode;
import com.nut.spp.api.req.ShopCheckReq;
import com.nut.spp.api.req.ShopQueryReq;
import com.nut.spp.common.Result;
import com.nut.spp.entity.Shop;

import java.io.Serializable;
import java.util.Set;

public interface ShopService {

    Result<IPage<Shop>> listPage(ShopQueryReq req);

    Result<Shop> getById(Serializable id);

    Result add(Shop shop);

    Result updateById(Shop shop);

    Result deleteByIds(Set<Integer> ids);

    Result<Shop> getByMemberId(Long memberId, Integer shopId);

    /**
     * 提交审核
     * @param id
     * @return
     */
    Result submit(Integer id);

    /**
     * 检查店铺申请状态
     * @param id
     * @return
     */
    Result<Shop> queryCheckStatus(Integer id);

    /**
     * 订单审核
     * @param req
     * @return
     */
    Result check(ShopCheckReq req);

    Result jbbCorpCreate(JsonNode obj);

    Result authCircle(Shop shop);

}